package com.bolingcavalry.crm.summaryorder.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.base.ResponseResult;
import com.dto.ServiceSummaryOrderDTO;
import com.vo.ServiceSummaryOrderVO;
import org.springframework.web.multipart.MultipartFile;

public interface ServiceSummaryOrderService {

    /**
     * 分页查询服务总结单
     */
    IPage<ServiceSummaryOrderVO> getByPage(Integer pageNum, Integer pageSize, String serviceNumber, String customerCompany,String salesManager, String startDate, String endDate);

    /**
     * 根据ID查询服务总结单详情
     */
    ServiceSummaryOrderVO getById(Long id);

    /**
     * 新增服务总结单
     */
    ResponseResult save(ServiceSummaryOrderDTO order);

    /**
     * 修改服务总结单
     */
    ResponseResult update(ServiceSummaryOrderDTO order);

    /**
     * 批量逻辑删除（is_deleted = 0）
     */
    void batchDelete(String[] ids);

    /**
     * 根据图片更新数据库以及上传本地服务器
     */
    ServiceSummaryOrderVO updateByImage(MultipartFile image) throws Exception;


    void updateStatus(Long id, String status);

    ServiceSummaryOrderVO getByServiceNumber(String orderNumber);
}